package com.probox.apiModules.controller.common;

import com.probox.common.core.web.controller.BaseController;
import com.probox.common.core.web.domain.AjaxResult;
import com.probox.common.entity.service.common.SysReginService;
import com.probox.common.entity.vo.regin.SysProvince;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * @author Kite
 * @date 2021/7/12
 */
@Api(value = "公共模块", tags = {"公共模块前端操作接口"})
@RestController
@RequestMapping("/common/openCustomerInfo")
public class RegoinOpencontroller extends BaseController {
    @Autowired
    private SysReginService sysReginService;

    /**
     * 获取地区数据
     */

    @ApiOperation(value = "获取地区数据")
    @ApiResponses({
            @ApiResponse(code = 200, message = "OK", response = SysProvince.class),
    })
    @GetMapping("/getRegion")
    public AjaxResult getRegion() {
        return AjaxResult.success(sysReginService.getRegion());
    }



}
